/*连接超时释放测试*/

#include "../source/server.hpp"

int main()
{
    Socket client;
    client.CreateClient(8888,"127.0.0.1");
    const std::string req="GET /hello HTTP/1.1\r\nConnection: keep-alive\r\nContent-Length: 0\r\n\r\n";
    while(1){
        client.Send(req.c_str(),req.size());
        char buf[1024]={0};
        client.Recv(buf,1023);
        DBG_LOG("%s",buf);
        sleep(20);
    }
    client.Close();
    return 0;
}